<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intl.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intl.resources.html">资源类型</a></div>
 <div class="up"><a href="intl.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="intl.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Intl 配置选项</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="intl.configuration.html#ini.intl.default-locale" class="link">intl.default_locale</a></td>
      <td class="empty">&nbsp;</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="intl.configuration.html#ini.intl.error-level" class="link">intl.error_level</a></td>
      <td>0</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="intl.configuration.html#ini.intl.use-exceptions" class="link">intl.use_exceptions</a></td>
      <td>0</td>
      <td>PHP_INI_ALL</td>
      <td>Available since PHP 5.5 and PECL 3.0.0a1</td>
     </tr>

    </tbody>
   
  </table>

 </p>

 <p class="para">这是配置指令的简短说明。</p>

 <p class="para">
  <dl>

   
     <dt id="ini.intl.default-locale">
      <em><code class="parameter">intl.default_locale</code></em>
      <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
     </dt>

     <dd>

      <p class="para">
       The locale that will be used in intl functions when none is specified
       (either by omitting the corresponding argument or by passing
       <em>NULL</em>). These are ICU locales, not system locales.
       The built-in ICU locales and their data can be explored at
       <a href="http://demo.icu-project.org/icu-bin/locexp" class="link external">&raquo;&nbsp;http://demo.icu-project.org/icu-bin/locexp</a>.
      </p>
      <p class="para">
       The default value is empty, which forces the usage of ICU&#039;s default
       locale. Once set, the ini setting cannot be reset to this default value.
       It is not recommended that this default be relied on, as its effective
       value depends on the server&#039;s environment.
      </p>
     </dd>

    
    
     <dt id="ini.intl.error-level">
      <em><code class="parameter">intl.error_level</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       The level of the error messages generated when an error occurs in ICU
       functions. This is a PHP error level, such as
       <strong><code>E_WARNING</code></strong>. It can be set to <em>0</em>
       in order to inhibit the messages. This does not affect the return values
       indicating error or the values returned by
       <span class="function"><a href="function.intl-get-error-code.html" class="function">intl_get_error_code()</a></span> or by the class specific
       methods for retrieving error codes and messages.
       Choosing <em>E_ERROR</em> will terminate the script whenever
       an error condition is found on intl classes.
      </p>
      <p class="para">
       The default value is <em>0</em>.
      </p>
     </dd>

    
    
     <dt id="ini.intl.use-exceptions">
      <em><code class="parameter">intl.use_exceptions</code></em>
      <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
     </dt>

     <dd>

      <p class="para">
       If set to true, an exception will be raised whenever an error occurs in
       an intl function. The exception will be of type
       <a href="class.intlexception.html" class="classname">IntlException</a>. This is possibly in addition to the
       error message generated due to <a href="intl.configuration.html#ini.intl.error-level" class="link">intl.error_level</a>.
      </p>
      <p class="para">The default value is <strong><code>FALSE</code></strong>.</p>
     </dd>

    

  </dl>

 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="intl.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="intl.resources.html">资源类型</a></div>
 <div class="up"><a href="intl.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
